package com.xuecheng.base.exception;

import org.springframework.stereotype.Component;

/**
 * @author: Hes
 * @description 校验分组
 * @date: 2023/6/20 17:39
 * 1、定义效验分组类
 * 2、在model类属性上指定分组 @NotEmpty(message = "课程图片不能为空",groups = {ValidationGroups.Inster.class})
 * 3、在Controller中指定分组 @Validated({ValidationGroups.Inster.class}
 *
 */

public class ValidationGroups {
    public interface Inster{};
    public interface Update{};
    public interface Delete{};

}
